package com.gas.project.gas.message.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gas.framework.aspectj.lang.annotation.Excel;
import com.gas.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息沟通对象 gas_message
 *
 * @author xyl
 * @date 2022-04-05
 */
public class Message extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 消息id
     */
    private Integer messageId;

    /**
     * 模块
     */
    @Excel(name = "模块")
    private String moduleName;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 提交人
     */
    @Excel(name = "提交人")
    private Long submitId;

    private String submitName;

    /**
     * 接收人
     */
    @Excel(name = "接收人")
    private Long receiveId;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    /**
     * 状态 0 未读，1 已读
     */
    @Excel(name = "状态 0 未读，1 已读")
    private Integer status;

    /**
     * 课程编号
     */
    @Excel(name = "课程编号")
    private String courseNumber;

    private String receiveNumber;


    public String getSubmitName() {
        return submitName;
    }

    public void setSubmitName(String submitName) {
        this.submitName = submitName;
    }

    public String getReceiveNumber() {
        return receiveNumber;
    }

    public void setReceiveNumber(String receiveNumber) {
        this.receiveNumber = receiveNumber;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getMessageId() {
        return messageId;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public Long getSubmitId() {
        return submitId;
    }

    public void setSubmitId(Long submitId) {
        this.submitId = submitId;
    }

    public Long getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Long receiveId) {
        this.receiveId = receiveId;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setCourseNumber(String courseNumber) {
        this.courseNumber = courseNumber;
    }

    public String getCourseNumber() {
        return courseNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("messageId", getMessageId())
                .append("moduleName", getModuleName())
                .append("content", getContent())
                .append("submitId", getSubmitId())
                .append("receiveId", getReceiveId())
                .append("submitTime", getSubmitTime())
                .append("status", getStatus())
                .append("courseNumber", getCourseNumber())
                .toString();
    }
}
